{include file='imobile_header.tpl'}

<div id="topbar">
  <div id="leftnav"> 
    <a href="user_home.php"><img alt="home" src="./include/imobile/iwebkit/images/home.png" /></a>
    <a href="javascript:history.go(-1);">{lang_print id=11340015}</a>
  </div> 
  <div id="title"> 
    {lang_print id=11340066}
  </div>
  <div id="bluerightbutton"><a href="browse_blogs.php">{lang_print id=11340062}</a></div>
</div>


<div id="contentlist">

  {section name=entries_loop loop=$entries}
    <div class="seBlogEntry seBlogEntry{cycle values='1,2'}">
    
      {* MAKE SURE TITLE IS NOT BLANK *}
      {if $entries[entries_loop].blogentry_title != ""}
        {assign var='blogentry_title' value=$entries[entries_loop].blogentry_title}
      {else}
        {lang_block id=1500015 var=blogentry_title}{/lang_block}
      {/if}
      
            <div class='seBlogEntryTitle'>
              {$blogentry_title}
            </div>
            <div class='seBlogEntryDate'>
              {lang_print id=1500016}
              {$datetime->cdate("`$setting.setting_dateformat`", $datetime->timezone("`$entries[entries_loop].blogentry_date`", $global_timezone))}
              -
              {lang_sprintf id=1500019 1=$entries[entries_loop].blogentry_totalcomments}
            </div>
            {* SHOW ENTRY CATEGORY *}
            {if !empty($entries[entries_loop].blogentry_blogentrycat_id)}
              <div class='seBlogEntryCategory'>
                {lang_print id=11340070} 
                  <a href="{$url->url_create('profile', $owner->user_info.user_username)}">{$owner->user_displayname}</a>
                {lang_print id=11340071}
                {if !$entries[entries_loop].blogentrycat_user_id}<a href='browse_blogs.php?c={$entries[entries_loop].blogentry_blogentrycat_id}'>{/if}
                {if !empty($entries[entries_loop].blogentrycat_languagevar_id)}
                  {capture assign=blogentrycat_title}{lang_print id=$entries[entries_loop].blogentrycat_languagevar_id}{/capture}
                {else}
                  {assign var=blogentrycat_title value=$entries[entries_loop].blogentrycat_title}
                {/if}
                {$blogentrycat_title}
                {if !$entries[entries_loop].blogentrycat_user_id}</a>{/if}
              </div>
            {/if}
            <div class='seBlogEntryBody'>
              {$entries[entries_loop].blogentry_body|choptext:36:"<br>"}
            </div>
      
    </div>
    
  {sectionelse}
  
    <div class="boxinfo"> 
      {lang_sprintf id=1500023 1=$owner->user_displayname 2=$url->url_create("profile", $owner->user_info.user_username)}
    </div>  
          
  {/section}


</div>

{include file='imobile_footer.tpl'}
